import { util } from '@/utils/common'

const user = {
  state: {
    userInfo: {},
  },
  mutations: {
    SET_USERINFO: (state, userInfo) => {
      state.userInfo = userInfo
    }
  },

  actions: {
    // 登出
    LogOut({ commit, state }) {
        util.sendUserInfo(null)
    }
  }
}

export default user